package com.spring.sample.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.spring.sample.dao.ICompareDao;

@Repository
public class CompareDaoImpl implements ICompareDao{

	@Autowired SqlSession sqlSession;
	
	@SuppressWarnings("unchecked")
	@Override
	public List<Map<String, Object>> selectUserCompare(String mbrNo,String userCompareSeq) {
		Map<String,Object> params = new HashMap<String,Object>();
		params.put("mbrNo", mbrNo);
		params.put("userCompareSeq", userCompareSeq);
		return sqlSession.selectList("COMPARE.getCompareList");
	}

}
